module.exports = {
    port: 9024,
    mysqlConfig: {
        host: '127.0.0.1',
        port: 3306,
        user: 'root',
        password: '123789',
        database: 'vdouw'
    },
    token: {
        secret: 'zhangsf',
        expiresIn: 60 * 60 * 24 * 7  //秒
    },
    ossConfig: {
        region: 'oss-cn-beijing',
        accessKeyId: 'LTAI5tKBEZQJmx3LJZ4URsdH',
        accessKeySecret: 'XoCRCpSGxOdppwIPg2xYUTDhN15jQx',
        bucket: 'zhangsf1919'
    },
    result: {
        success: {code: 200, msg: '操作成功'},  //通用成功
        error: {code: 500, msg: '操作失败'},  //通用错误
        tokenExpire: {code: 403, msg: 'token已过期'},
        notFound: {code: 404, msg: '接口不存在'},
        notData: {code: 301, msg: '数据不存在'},
        sqlError: {code: 310, msg: 'sql语句错误'},
        operationError: {code: 311, msg: '操作失败'},
        transactionError: {code: 312, msg: '事务执行失败'},
        missingPrimaryError: {code: 360, msg: '缺少主键ID'},
    },
    password_salt: 'iDeemcp5d123n31mR',  //登录密码加密盐
}